package com.bawei.model_sevent.Activity.Banner;

import android.util.Log;

import com.bawei.model_sevent.Activity.MVP.Persenter;

import java.util.List;

/**
 * 时间：2021/11/16 15:00.
 * 类名：BannerPreson
 * 作用：Model_sevent
 * 作者:张羽_zy
 */
public class BannerPreson extends Persenter<BannerContent.Model,BannerContent.View> {
    public BannerPreson(BannerContent.Model model, BannerContent.View view) {
        super(model, view);
    }
    public void GetDate(String s1,String s2)
    {
       model.onSuccess(s1, s2, new BannerCallBack() {
           @Override
           public void onSuccess(List<BannerBean.DataBean> Bannerlist) {
               view.initAdapter(Bannerlist);
               Log.i("a3", "onSuccess: "+Bannerlist);
           }
       });
    }
}
